package com.gzsxy.esjy.service.base.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 商品
 * @date 2022/1/10 22:47
 */
@Data
@ApiModel
public class ProductRequest {


    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @NotBlank(message = "id不能为空",groups = {ProductGroups.class})
    private String id;

    @ApiModelProperty(value = "名称")
    private String title;

    @ApiModelProperty(value = "编号")
    private String productCode;

    @ApiModelProperty(value = "分类")
    @NotBlank(message = "分类id不能为空")
    private String categoryId;

    @ApiModelProperty(value = "原价")
    private Double oldPrice;

    @ApiModelProperty(value = "价格")
    private Double price;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "简介")
    private String intro;

    @ApiModelProperty(value = "图片")
    private String imagePath;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "学校")
    private String school;

    @ApiModelProperty(value = "成色")
    private String conditions;

    @ApiModelProperty(value = "转手原因")
    private String reasonsFoSale;

    @ApiModelProperty(value = "浏览数量")
    private String viewCount;

    @ApiModelProperty(value = "满多少")
    private Integer fullScore;

    @ApiModelProperty(value = "返多少")
    private Integer donateScore;

    @ApiModelProperty(value = "推荐")
    private String marker;

    @ApiModelProperty(value = "发布状态 0未发布 1已发布")
    private Integer publishStatus;

    @ApiModelProperty(value = "版本")
    private Integer version;

    @ApiModelProperty(value = "商品参数")
    private List<ProductAttributeRequest> productAttr;

    @ApiModelProperty(value = "商品图片")
    private List<ProductPicRequest> productPic;

}
